﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using UnityEngine.Events;
/// <summary>
/// 快速类申明
/// </summary>
public class ColliderEvent : MonoBehaviour
{
    public event UnityAction OnMouseDownEvent;
    public event UnityAction OnMouseEnterEvent;
    public event UnityAction OnMouseExitEvent;


    private void OnMouseDown()
    {
        OnMouseDownEvent?.Invoke();
    }
    private void OnMouseEnter()
    {
        OnMouseEnterEvent?.Invoke();
    }
    private void OnMouseExit()
    {
        OnMouseExitEvent?.Invoke();
    }
}

